#include "game.h"
#include<bits/stdc++.h>
using namespace std;
const int Maxn = 5010;
int vis[Maxn];
std :: vector<int> guess(int n, int limit) {
	std :: vector<int> ans;
	ans.resize(n);
	for(int i = 1 ; i <= n ; i++) ans[i - 1] = i;
	for(int i = 1 ; i <= n ; i++){
		if(vis[i]) continue;
		int s1 = count(ans);
		for(int j = i + 1 ; j <= n ; j++){
			if(vis[j]) continue;
			swap(ans[i - 1], ans[j - 1]);
			int s2 = count(ans);
			// int s1, s2;
			if(s2 < s1){
				swap(ans[i - 1], ans[j - 1]);
				vis[j] = 1;
				continue;
			}if(s2 > s1){
				vis[i] = 1;
				if(s2 == s1 + 2) vis[j] = 1;
				break;
			}
			swap(ans[i - 1], ans[j - 1]);
		}
	}
	return ans;
}
/*
g++ game.cpp grader.cpp -o game -O2

*/